package com.huike.business.mapper;

import java.util.List;
import com.huike.business.domain.TbBusinessTrackRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * 商机跟进记录Mapper接口
 * @date 2021-04-28
 */
public interface TbBusinessTrackRecordMapper {

    @Select("SELECT * FROM `tb_business_track_record` WHERE business_id = #{businessId}")
    List<TbBusinessTrackRecord> findByBusinessId(Long businessId);

    @Insert("insert into tb_business_track_record value (null,#{businessId},#{createBy},#{keyItems},#{record},#{createTime},#{trackStatus},#{nextTime})")
    void save(TbBusinessTrackRecord businessTrackRecord);
}